<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/pay/tenantPaymentActivity.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营商</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>添加标签</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">添加标签</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t layui-form" id="frmTenantPaymentActivity">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">终端：</label>
                            <div class="col-sm-3">
                                <select name="channelType" id="channelType" class="form-control">
                                    <option value="1">APP</option>
                                    <option value="0">微信</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">支付方式：</label>
                            <div class="col-sm-3">
                                <select name="payType" id="payType" class="form-control">
                                    <option value="UNIONPAY">银联</option>
                                    <option value="WXPAY">微信</option>
                                    <option value="ALIPAY">支付宝</option>
                                    <option value="ABCPAY">农行</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开始时间：</label>
                            <div class="col-sm-3">
                                <input class="form-control" id="startTime" name="startTime">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">结束时间：</label>
                            <div class="col-sm-3">
                                <input class="form-control" id="endTime" name="endTime">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">是否推荐：</label>
                            <div class="col-sm-3">
                                <input class="form-control" type="radio" name="recommendType" value="1"
                                       lay-filter="recommendType" checked
                                       title="是">
                                <input class="form-control" type="radio" name="recommendType" value="0"
                                       lay-filter="recommendType"
                                       title="否">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">标签描述：</label>
                            <div class="col-sm-3">
                                <textarea class="form-control" id="remark" name="remark" style="height: 15%"></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">


    layui.use(['form', 'jquery', 'tree', 'laydate', 'util'], function () {

        var startTime = laydate.render({
            elem: '#startTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm:ss',
            trigger: 'click'
        });

        var form = layui.form;
        var $ = layui.jquery;

    })


    addTenantPaymentActivity.init();
</script>
</body>
</html>
